<HTML>
<HEAD><TITLE>Day NL Calculation !!!</TITLE>
</HEAD>
<BODY bgcolor="white">
<SCRIPT language="javascript">
{literal}
window.name = 'displayAll';
function changeItem()
{
  document.form1.itemIdChanged.value = "itemId";
}
{/literal}
</SCRIPT>
  <FONT face="arial">
		<a href="index.php">Home</a>
	<CENTER>
	<FORM name="form1" method="POST" action="{$PHP_SELF}">
	<INPUT type="hidden" name="display" value="{$display}">
	<INPUT type="hidden" name="itemIdChanged" value="1">
  Exchange: 
    <SELECT name="exchange" value="F_O" onChange="document.form1.submit();">
    {html_options selected="$selectedExchange" values="$exchangeValue" output="$exchangeValue"}
    </SELECT>

  From Date : 
    {html_select_date time="$fromDate" prefix="fromDate" start_year="-1" end_year="+1" month_format="%m" field_order="DMY" day_value_format="%02d"}
  
  Item :
    <SELECT name="itemId" onChange="document.form1.itemIdChanged.value=1;document.form1.submit();">
    {html_options selected="$currentItemId" values="$itemIdValues" output="$itemIdOptions"}
    </SELECT>
  
  Expiry Date : 
    <SELECT name="expiryDate" onChange="document.form1.itemIdChanged.value=0;document.form1.submit();"> 
    {html_options selected="$expiryDateSelected" values="$expiryDateValues" output="$expiryDateOptions"}
   </SELECT>
    <INPUT type="submit" name="submitBtn" value="Go">
  </FORM>
  </CENTER><br />
  </FONT>
  
  
  <FONT face="arial" size=+1>
  	<DIV style="padding-left:50px;">
  	  <TABLE border="1" cellSpacing="0" cellPadding="2" width="95%">
  	  	<TR>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">HIGH</FONT></TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">LOW</FONT></TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right">CLOSE</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH colspan="5">&nbsp;</TH>
   	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$highPrice y=2 format="%.2f"}</FONT></TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$lowPrice y=2 format="%.2f"}</FONT></TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right">{math equation="round(x,y)" x=$closePrice y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH colspan="5">&nbsp;</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="blue">R3&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$r3 y=2 format="%.2f"}</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="blue">R2&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$r2 y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="right">Best High</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right">Best Low</TH>

  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="blue">R1&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$r1 y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$bestHigh y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$bestLow y=2 format="%.2f"}</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="green">Pivot&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="green">{math equation="round(x,y)" x=$pivot y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="right">High Reverse</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right">Low Reverse</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="red">S1&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$s1 y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="left">&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$highReverse y=2 format="%.2f"}</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="blue">{math equation="round(x,y)" x=$lowReverse y=2 format="%.2f"}</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="red">S2&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$s2 y=2 format="%.2f"}</TH>
  	  	</TR>
  			<TR><TH colspan="12">&nbsp;</TH></TR>
  	  	<TR>
  	  		<TH align="left"><FONT color="red">S3&nbsp;&nbsp;</TH>
  	  		<TH align="right"><FONT color="red">{math equation="round(x,y)" x=$s3 y=2 format="%.2f"}</TH>
  	  	</TR>
  	  </TABLE>
  	</DIV>

	</FONT>
	
</BODY>
</HTML>